/**
 * 
 */
package org.oy.sealogger.route;

import java.awt.Color;
import java.util.Vector;

/**
 * @author juho
 *
 */
public class Route {
	
	boolean visible = false;
	Vector<GPSLocation> path;
	String name;
	Color color;
	
	public Route(String name, Vector<GPSLocation> locations, boolean visible) {
		this.name = name;
		this.path = locations;
		this.visible = visible;
		color = Color.BLACK;
	}

	/**
	 * @return the visible
	 */
	public boolean isVisible() {
		return visible;
	}
	
	public void toggleVisibility() {
		visible = !visible;
	}

	/**
	 * @param visible the visible to set
	 */
	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	/**
	 * @return the path
	 */
	public Vector<GPSLocation> getPath() {
		return path;
	}

	/**
	 * @param path the path to set
	 */
	public void setPath(Vector<GPSLocation> path) {
		this.path = path;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public void setColor(Color c) {
		color = c;
	}
	
	public Color getColor() {
		return color;
	}
}
